using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Collections.Generic;
using Musicman.Business;
using Musicman.Entities;

namespace Musicman.SAL
{
    /// <summary>
    /// Summary description for FeedbackService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class FeedbackService : System.Web.Services.WebService
    {

        [WebMethod]
        public List<DateTime> LoadUserFeedbackDates()
        {
            List<DateTime> res = DataManager.Instance.LoadUserFeedBackDates();
            return res;
        }

        [WebMethod]
        public List<Userfeedback> LoadFeedbackPerDay(string day)
        {
            List<Userfeedback> res = DataManager.Instance.LoadFeedBackPerDay(day);
            return res;
        }

        [WebMethod]
        public bool SaveUserFeedback(Userfeedback fb)
        {
            bool res = DataManager.Instance.SaveUserFeedback(fb);
            return res;
        }

        [WebMethod]
        public bool DeleteUserFeedback(long fbID)
        {
            bool res = DataManager.Instance.DeleteUserFeedback(fbID);
            return res;
        }

    }
}
